import Vue from 'vue';
import Vuex from 'vuex';
// 导入模块
import getters from './getters';
import app from './modules/app';
import loading from './modules/loading';
import bookdetail from './modules/bookdetail';
import reader from './modules/reader';
import listen from './modules/listen';

Vue.use(Vuex);

const store = new Vuex.Store({
  getters,
  modules: {
    app,
    loading,
    bookdetail,
    reader,
    listen
  }
});

export default store;
